package com.sasis.model;
// Generated 2007-7-26 15:22:27 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_INFO"
 *     
 */

public class VipInfo extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipTypeId;
    private String name;
    private String gender;
    private String nationality;
    private String idCard;
    private String duty;
    private String cardType;
    private String cardNum;
    private String mobile;
    private String photo;
    private String favorite;
    private String serviceDesc;
    private String memo;
    private String vipTypeName;


    // Constructors

    /** default constructor */
    public VipInfo() {
    }

    
    /** full constructor */
    public VipInfo(Integer vipTypeId, String name, String gender, String nationality, String idCard, String duty, String cardType, String cardNum, String mobile, String photo, String favorite, String serviceDesc, String memo) {
        this.vipTypeId = vipTypeId;
        this.name = name;
        this.gender = gender;
        this.nationality = nationality;
        this.idCard = idCard;
        this.duty = duty;
        this.cardType = cardType;
        this.cardNum = cardNum;
        this.mobile = mobile;
        this.photo = photo;
        this.favorite = favorite;
        this.serviceDesc = serviceDesc;
        this.memo = memo;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_TYPE_ID"
     *             length="22"
     *         
     */

    public Integer getVipTypeId() {
        return this.vipTypeId;
    }
    
    public void setVipTypeId(Integer vipTypeId) {
        this.vipTypeId = vipTypeId;
    }
    /**       
     *      *            @hibernate.property
     *             column="NAME"
     *             length="64"
     *         
     */

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    /**       
     *      *            @hibernate.property
     *             column="GENDER"
     *             length="16"
     *         
     */

    public String getGender() {
        return this.gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }
    /**       
     *      *            @hibernate.property
     *             column="NATIONALITY"
     *             length="64"
     *         
     */

    public String getNationality() {
        return this.nationality;
    }
    
    public void setNationality(String nationality) {
        this.nationality = nationality;
    }
    /**       
     *      *            @hibernate.property
     *             column="ID_CARD"
     *             length="32"
     *         
     */

    public String getIdCard() {
        return this.idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    /**       
     *      *            @hibernate.property
     *             column="DUTY"
     *             length="64"
     *         
     */

    public String getDuty() {
        return this.duty;
    }
    
    public void setDuty(String duty) {
        this.duty = duty;
    }
    /**       
     *      *            @hibernate.property
     *             column="CARD_TYPE"
     *             length="64"
     *         
     */

    public String getCardType() {
        return this.cardType;
    }
    
    public void setCardType(String cardType) {
        this.cardType = cardType;
    }
    /**       
     *      *            @hibernate.property
     *             column="CARD_NUM"
     *             length="64"
     *         
     */

    public String getCardNum() {
        return this.cardNum;
    }
    
    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }
    /**       
     *      *            @hibernate.property
     *             column="MOBILE"
     *             length="64"
     *         
     */

    public String getMobile() {
        return this.mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    /**       
     *      *            @hibernate.property
     *             column="PHOTO"
     *             length="64"
     *         
     */

    public String getPhoto() {
        return this.photo;
    }
    
    public void setPhoto(String photo) {
        this.photo = photo;
    }
    /**       
     *      *            @hibernate.property
     *             column="FAVORITE"
     *             length="1024"
     *         
     */

    public String getFavorite() {
        return this.favorite;
    }
    
    public void setFavorite(String favorite) {
        this.favorite = favorite;
    }
    /**       
     *      *            @hibernate.property
     *             column="SERVICE_DESC"
     *             length="1024"
     *         
     */

    public String getServiceDesc() {
        return this.serviceDesc;
    }
    
    public void setServiceDesc(String serviceDesc) {
        this.serviceDesc = serviceDesc;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="1024"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipTypeId").append("='").append(getVipTypeId()).append("' ");			
      buffer.append("name").append("='").append(getName()).append("' ");			
      buffer.append("gender").append("='").append(getGender()).append("' ");			
      buffer.append("nationality").append("='").append(getNationality()).append("' ");			
      buffer.append("idCard").append("='").append(getIdCard()).append("' ");			
      buffer.append("duty").append("='").append(getDuty()).append("' ");			
      buffer.append("cardType").append("='").append(getCardType()).append("' ");			
      buffer.append("cardNum").append("='").append(getCardNum()).append("' ");			
      buffer.append("mobile").append("='").append(getMobile()).append("' ");			
      buffer.append("photo").append("='").append(getPhoto()).append("' ");			
      buffer.append("favorite").append("='").append(getFavorite()).append("' ");			
      buffer.append("serviceDesc").append("='").append(getServiceDesc()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipInfo) ) return false;
		 VipInfo castOther = ( VipInfo ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipTypeId()==castOther.getVipTypeId()) || ( this.getVipTypeId()!=null && castOther.getVipTypeId()!=null && this.getVipTypeId().equals(castOther.getVipTypeId()) ) )
 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) )
 && ( (this.getGender()==castOther.getGender()) || ( this.getGender()!=null && castOther.getGender()!=null && this.getGender().equals(castOther.getGender()) ) )
 && ( (this.getNationality()==castOther.getNationality()) || ( this.getNationality()!=null && castOther.getNationality()!=null && this.getNationality().equals(castOther.getNationality()) ) )
 && ( (this.getIdCard()==castOther.getIdCard()) || ( this.getIdCard()!=null && castOther.getIdCard()!=null && this.getIdCard().equals(castOther.getIdCard()) ) )
 && ( (this.getDuty()==castOther.getDuty()) || ( this.getDuty()!=null && castOther.getDuty()!=null && this.getDuty().equals(castOther.getDuty()) ) )
 && ( (this.getCardType()==castOther.getCardType()) || ( this.getCardType()!=null && castOther.getCardType()!=null && this.getCardType().equals(castOther.getCardType()) ) )
 && ( (this.getCardNum()==castOther.getCardNum()) || ( this.getCardNum()!=null && castOther.getCardNum()!=null && this.getCardNum().equals(castOther.getCardNum()) ) )
 && ( (this.getMobile()==castOther.getMobile()) || ( this.getMobile()!=null && castOther.getMobile()!=null && this.getMobile().equals(castOther.getMobile()) ) )
 && ( (this.getPhoto()==castOther.getPhoto()) || ( this.getPhoto()!=null && castOther.getPhoto()!=null && this.getPhoto().equals(castOther.getPhoto()) ) )
 && ( (this.getFavorite()==castOther.getFavorite()) || ( this.getFavorite()!=null && castOther.getFavorite()!=null && this.getFavorite().equals(castOther.getFavorite()) ) )
 && ( (this.getServiceDesc()==castOther.getServiceDesc()) || ( this.getServiceDesc()!=null && castOther.getServiceDesc()!=null && this.getServiceDesc().equals(castOther.getServiceDesc()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipTypeId() == null ? 0 : this.getVipTypeId().hashCode() );
         result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
         result = 37 * result + ( getGender() == null ? 0 : this.getGender().hashCode() );
         result = 37 * result + ( getNationality() == null ? 0 : this.getNationality().hashCode() );
         result = 37 * result + ( getIdCard() == null ? 0 : this.getIdCard().hashCode() );
         result = 37 * result + ( getDuty() == null ? 0 : this.getDuty().hashCode() );
         result = 37 * result + ( getCardType() == null ? 0 : this.getCardType().hashCode() );
         result = 37 * result + ( getCardNum() == null ? 0 : this.getCardNum().hashCode() );
         result = 37 * result + ( getMobile() == null ? 0 : this.getMobile().hashCode() );
         result = 37 * result + ( getPhoto() == null ? 0 : this.getPhoto().hashCode() );
         result = 37 * result + ( getFavorite() == null ? 0 : this.getFavorite().hashCode() );
         result = 37 * result + ( getServiceDesc() == null ? 0 : this.getServiceDesc().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         return result;
   }


public String getVipTypeName() {
	return vipTypeName;
}


public void setVipTypeName(String vipTypeName) {
	this.vipTypeName = vipTypeName;
}   





}
